From 4125bc6821c6b7836b434764c67decae0e50eb1c Mon Sep 17 00:00:00 2001 From: justbur Date: Mon, 20 Jul 2015 13:35:38 -0400 Subject: [PATCH] echo-keystrokes might be nil --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 5cf07b7aea0..7e1a4b0c34d 100644 --- a/which-key.el +++ b/which-key.el @@ -302,7 +302,8 @@ set too high) and setup which-key buffer." (defun which-key--setup-echo-keystrokes () "Reduce `echo-keystrokes' if necessary (it will interfer if it's set too high)." - (when (> (abs (- echo-keystrokes which-key-echo-keystrokes)) 0.000001) + (when (and echo-keystrokes + (> (abs (- echo-keystrokes which-key-echo-keystrokes)) 0.000001)) (setq which-key--echo-keystrokes-backup echo-keystrokes) (if (> which-key-idle-delay which-key-echo-keystrokes) (setq echo-keystrokes which-key-echo-keystrokes) -- 2.30.2